﻿using System;
using Newtonsoft.Json;

namespace Ext.Direct.Mvc
{
    public static class JsonExtensions
    {
        public static void WriteProperty<T>(this JsonWriter jsonWriter, string name, T value) {
            jsonWriter.WritePropertyName(name);
            jsonWriter.WriteValue(value);
        }
    }
}
